package com.newlink.building.userinfo.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.ResponseTopData
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/10/29
 * @description 我的——账户信息——绑定手机号——输入验证码页面的Contract
 */
interface Module_UserInfo_AccountInformationBindPhoneInputCodeContract {

    interface Model : IModel {
        fun getData()
        fun sendBindPhoneCode(
            accessToken: String,
            area: String,
            bindPhone: String,
            userId: Long,
            s: String
        ): Observable<HttpResult<ResponseTopData>>
    }

    interface View : IView {
        fun showData()
        fun onBindPhoneSuccess()
        fun onBindPhoneFailed()
    }

    interface Presenter : IPresenter<View> {
        fun getData()
        fun sendBindPhoneCode(
            accessToken: String,
            area: String,
            bindPhone: String,
            userId: Long,
            s: String
        )
    }
}